<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="./js/vue.min.js"></script>
  <script src="./js/axios.min.js"></script>
  <style>
    body,
    div,
    dl,
    dt,
    dd,
    ul,
    ol,
    li,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    pre,
    code,
    form,
    fieldset,
    legend,
    textarea,
    p,
    blockquote,
    th,
    td,
    input,
    select,
    textarea,
    button,
    img {
      padding: 0;
      margin: 0;
    }

    html,
    body {
      height: 100%;
      width: 100%;
    }

    #app {
      display: flex;
      width: 100%;
      height: 100%;
      background-color: #333;
      background: url(https://api.xygeng.cn/bing/1920.php) center repeat;
    }

    #app .box {
      width: 60%;
      height: 100px;
      margin: 100px auto;
    }

    #app .box input {
      width: 100%;
      height: 50%;
      border: 0;
      background-color: rgba(150, 150, 150, .2);
      outline: 0;
      text-indent: 10px;
      COLOR: #ffffff;
    }
  </style>
  <title>SEARCH</title>
</head>

<body>
  <div id="app">
    <div class="box">
      <input type="text" v-model="search" @keydown.enter="searchWhat">
    </div>
  </div>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        search: ""
      },
      methods: {
        searchWhat() {
          const url = "https://so.m.sm.cn/s?q=" + this.search
          window.open(url, "_self")
        }
      },
    })
  </script>
</body>

</html>